import { SetMetadata } from "@nestjs/common";

import { AdminSystemRole } from "../constants";

export const REQUIRE_ROLES_KEY = "requirRoles";
export const RequireRoles = (...roles: ValueOf<typeof AdminSystemRole>[]) => SetMetadata(REQUIRE_ROLES_KEY, roles);
